class Solution(object):
    def freqAlphabets(self, s):
        """
        :type s: str
        :rtype: str
        """
        s = s.split('#')
        out = []
        for t in s[:-1]:
            for c in t[:-2]:
                out .append(chr(ord(c) - ord('1') + ord('a')))
            out.append(chr(int(t[-2:]) - 10 + ord('j')))
        if s[-1]:
            t = s[-1]
            for c in t:
                out.append(chr(ord(c) - ord('1') + ord('a')))
        return ''.join(out)
